Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore roc build --no-link pipeline #7236

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Restore roc build --no-link pipeline #7236

merged 1 commit into from
Nov 21, 2024

Conversation

lukewilliamboswell
Copy link
Collaborator

This PR restores the functionality to build a roc app into an object file without a host gives an error Legacy linking failed.

 $ roc build --no-link --emit-llvm-ir examples/simple.roc
Legacy linking failed: Failed to find any legacy linking files; I need one of these three paths to exist:
    examples/../platform/macos-arm64.a
    examples/../platform/macos-arm64.o
    examples/../platform/libhost.a

This was likely broken in #6859, here is the previous implementation that provided this functionality.

// We don't need to spawn a rebuild thread when using a prebuilt host.
     let rebuild_thread = if matches!(link_type, LinkType::Dylib | LinkType::None) {
         None
     } else if is_platform_prebuilt {
// <---snipped--->

@smores56 smores56 merged commit 6a3db1e into main Nov 21, 2024
19 checks passed
@smores56 smores56 deleted the fix-no-link branch November 21, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants